home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11138 < prev    next >
Encoding:
Text File  |  1996-08-05  |  856 b   |  31 lines

  1. Path: mn5.swip.net!news
  2. From: kent.persson@mailbox.swipnet.se (Kent Persson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Watcom C++ 10.5.. Need help with asm-registers..
  5. Date: 12 Mar 1996 17:46:37 GMT
  6. Organization: Your Organization
  7. Message-ID: <4i4d9t$lo4@mn5.swip.net>
  8. NNTP-Posting-Host: dialup99-5-6.swipnet.se
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. NNTP-Posting-User: e990a2281e6449bb84049cfa234dd6bd
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. I've just started to learn C++ and I have a bit problem.
  15. Anyone who can explain how to do this little code correct?
  16.  
  17. /* How to do in Watcom C++ 10.5? */
  18.  
  19. union REGS fast_regs;
  20. char *Temp;
  21.  
  22. Temp = ((char *)malloc(10000));
  23. fast_regs.x.esi = Temp;    /* The problem is here     */
  24.             /* How do I pass a pointer */
  25.                 /* to a register?          */
  26.  
  27. Thanks in advance!
  28.  
  29. /Kent    (kent.persson@mailbox.swipnet.se)
  30.  
  31.